package com.cy.login.comment.core;

import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

import javax.annotation.Resource;

public class BaseCache {
    @Resource
    public RedisTemplate<Object, Object> redisTemplate;
    @Resource
    public ValueOperations<Object, Object> valueOperations;
    @Resource
    public HashOperations<Object, Object, Object> hashOperations;

    public <T> void hashOperationsBaseCache(String mapKey, String key , T t)
    {
        hashOperations.put(mapKey,key,t);
    }
}
